package com.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.product.entity.CategoryEntity;
import com.product.vo.CateLog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author
 * @email 3299686223@qq.com
 * @date 2022-08-08 14:42:26
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    List<Long> findCatelogPath(Long catalogId);

    void updateCascade(CategoryEntity category);

    /**
     * 查询分类
     *
     * @return 结果
     */
    List<CategoryEntity> getLevelList(int leve);

    Map<String, List<CateLog2Vo>> getCateLogJson();
}

